package com.vcredit.creditcat.service;

import com.vcredit.creditcat.model.RegisterChannel;
import com.vcredit.creditcat.persistence.base.RegisterChannelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by liaoshengjun on 2017/7/28.
 */
@Service
public class RegisterChannelService {
	@Autowired
	RegisterChannelMapper mapper;
	public RegisterChannel findById(Long channelId){return mapper.findById(channelId);}
	public List<RegisterChannel> findByChannel(String channel){return mapper.findByChannel(channel);}
}
